{include file='public/head'}
<style>
    .layer-photos-demo img{
        cursor:pointer;
        height: 100px;
        width: 100px;
    }
    .layui-table {
        margin: 0 0;
    }
</style>
<body>
<div class="x-body">
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col>
            <col width="150">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <td>账单金额</td>
            <td>￥{$info.money}</td>
        </tr>
        <tr>
            <td>操作日期</td>
            <td>{$info['operate_date']|date="Y-m-d",###}</td>
        </tr>
        <tr>
            <td>账单说明</td>
            <td>{$info.reason}</td>
        </tr>
        <tr>
            <td>账单分类</td>
            <td>
                {switch name="info.project" }
                {case value="1"}充值{/case}
                {case value="2"}支出{/case}
                {case value="3"}采购{/case}
                {case value="4"}运费{/case}
                {default /}其他
                {/switch}
            </td>
        </tr>
        <tr>
            <td>审核状态</td>
            <td>
                {switch name="info.audit" }
                {case value="1"}<b style="color: blue">未审核</b>{/case}
                {case value="2"}<b style="color: green">已审核</b>{/case}
                {case value="3"}<b style="color: red">未通过</b>{/case}
                {/switch}
            </td>
        </tr>
        <tr>
            <td>创建时间</td>
            <td>{$info['timestamp']|date="Y-m-d H:i:s",###}</td>
        </tr>
        <tr>
            <td>备注</td>
            <td>{$info.remark}</td>
        </tr>
        <tr>
            <td>账单创建人员</td>
            <td>{$info.operate_truename}</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center;background-color: #F2F2F2">运单信息</td>
        </tr>
        </tbody>
    </table>
    <table class="layui-table">
        <thead>
        <tr>
            <th style="width: 75px;text-align:center">商品数量</th>
            <th style="width: 75px;text-align:center">商品图片</th>
            <th>商品名称</th>
        </thead>
        <tbody>

        {volist name="waybillGoods" id="vo"}
        <tr>
            <td style="text-align: center">
                {$vo.num}
            </td>
            <td>
                {if empty($vo['url'])}
                <img src="__images__/noimg.png">
                {else/}
                <img src="{$vo['url']}" onclick="previewImg(this)">
                {/if}
            </td>
            <td>{$vo.title}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <table class="layui-table">
        <colgroup>
            <col width="150">
            <col>
            <col>
            <col width="150">
            <col>
            <col>
        </colgroup>
        <tbody>
        <tr>
            <td>物流公司</td>
            <td colspan="2">{$logistics[$waybill['logistic_id']]['name']|default=''}</td>
            <td>配送方式</td>
            <td colspan="2">{$waybill.shipping_method}</td>
        </tr>
        <tr>
            <td>海关简称（英文）</td>
            <td colspan="2">{$waybill.customs_en}</td>
            <td>海关简称（中文）</td>
            <td colspan="2">{$waybill.customs}</td>
        </tr>
        <tr>
            <td>物流面单号码</td>
            <td colspan="2">{$waybill.express}</td>
            <td>海关编码</td>
            <td colspan="2">{$waybill.coding}</td>
        </tr>
        <tr>
            <td>运单追踪号</td>
            <td colspan="2">{$waybill.waybill}</td>
            <td>发货日期</td>
            <td colspan="2">{$waybill.deliver}</td>
        </tr>
        <tr>
            <td>申报</td>
            <td colspan="2">{$waybill.declare_unit}{$waybill.declare}</td>
            <td>总重</td>
            <td>{$waybill.weight}克</td>
            <td>{$waybill['is_battery'] == 2? '有电池' : '无电池'}</td>
        </tr>
        <tr>
            <td>保险</td>
            <td colspan="2">{$waybill.insure_unit}{$waybill.insure}</td>
            <td>运费</td>
            <td colspan="2">{$waybill.fee_unit}{$waybill.fee}</td>
        </tr>
        <tr>
            <td>备注</td>
            <td colspan="5">{$waybill.remark}</td>
        </tr>
        </tbody>
    </table>
</div>
</body>
{include file='public/foot'}
</html>
